home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / c / appsource.lha / APlusPlus / SASC++ / APPLibrary / makesas < prev    next >
Encoding:
Text File  |  1994-07-16  |  1.9 KB  |  68 lines

  1. #
  2. # This script creates a makefile for A++ to be executed
  3. # with SMake and the SAS®/C++ Development System.
  4. #
  5.  
  6. # open the output file
  7. echo "Creating SAS 'smakefile'.."
  8. rm smakefile
  9. open smakefile w 1
  10.  
  11. echo "#"^j\
  12. "# SAS Makefile for the A++ Library"^j\
  13. "# Copyright (C) by Armin Vogt"^j\
  14. "#"^j\
  15. "# This makefile has been created automatically with 'makesas'"^j\
  16. "# "$Id: makesas,v 1.3 1994/07/15 21:49:50 Armin_Vogt Exp Armin_Vogt $^j\
  17. "#"^j^j\
  18. "LIBRARYFILE     =       aplusplus.lib"^j\
  19. "LIBSOURCE       =       apphome:libsource/"^j\
  20. "APPHEADERS      =       appinclude:APlusPlus/"^j\
  21. "APPINCLUDE      =       appinclude:"^j\
  22. "INCLUDERCS      =       apphome:RCS/include/APlusPlus/"^j\
  23. "LIBRCS          =       apphome:RCS/libsource/"^j\
  24. ""^j\
  25. ""^j\
  26. "CI       =     @ ci -l"^j\
  27. "CIOPTS   =     -l"^j\
  28. "TOUCH    =     @ touch"^j\
  29. ""^j >.1
  30.  
  31.  
  32. alias ALL        "*p%c exec set p $p; foreach s ( $p ) $c"
  33.  
  34. echo "Making object lists.."
  35. #
  36. # create object list: all files present in the libsource directory
  37. # are included.
  38. #
  39. echo "OBJS =  \\" >.1
  40. cd apphome:libsource
  41. unset file
  42. ALL *.cxx "strhead file .cxx $s;echo \" \"$file.o\\\\" >.1
  43. dswap
  44.  
  45. echo ^j^j"$(LIBRARYFILE): $(OBJS)"^j"   oml $(LIBRARYFILE) R $?"^j^j >.1
  46. echo ".cxx.o:"^j"   sc $*.cxx includedirectory=$(APPINCLUDE) objectname=/APPLibrary/" >.1
  47.  
  48. #
  49. # create object's source and header dependencies: for each files
  50. # present in the header directories a dependency is created.
  51. # Even if the header does not correspond to a source file,
  52. # that doesnät matter since only source files are included into
  53. # the objects list.
  54. #
  55.  
  56. echo "Making A++ source RCS dependencies.."
  57.  
  58. echo ^j^j"#"^j"# A++ source RCS dependencies"^j"#"^j >.1
  59. cd appinclude:APlusPlus
  60. unset file
  61. unset name
  62. ALL */*.h "strhead file .h $s;strtail name / $file;echo "$name.o: "\"$\""(LIBSOURCE)$name.cxx "\"$\""(APPHEADERS)$file.h"^j;unset name" >.1
  63. dswap
  64.  
  65. # close created output file
  66. close 1
  67. echo "done."
  68.